package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface IUserMapper extends BaseMapper<UserBean> {
    void updatePwdById(@Param("userId") Integer userId,
                       @Param("pwd1") String pwd1,
                       @Param("pwd2") String pwd2,
                       @Param("pwd3") String pwd3);
    @Select("select u_pwd from t_user where pk_userId = #{userId}")
    String findOldPwd(Integer userId);
}
